﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BTKERP.Model.Inventory
{
    #region GRNDetailInfo
    /// <summary>
    /// This object represents the properties and methods of a GRNDetail.
    /// </summary>
    [Serializable]
    public class GRNDetailInfo
    {
        protected string _id;
        protected int _productId;
        protected int _unitId;
        protected decimal _quantity;
        protected decimal _unitCost;
        protected decimal _total;
        protected bool _isConsignment;
        protected decimal _consignmentCommission;
        protected string _remark = String.Empty;
        protected DateTime _createdOn;
        protected string _createdBy = String.Empty;
        protected DateTime _updatedOn;
        protected string _updatedBy = String.Empty;

        public GRNDetailInfo()
        {
        }

        #region Public Properties
        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int ProductId
        {
            get { return _productId; }
            set { _productId = value; }
        }

        public int UnitId
        {
            get { return _unitId; }
            set { _unitId = value; }
        }

        public decimal Quantity
        {
            get { return _quantity; }
            set { _quantity = value; }
        }

        public decimal UnitCost
        {
            get { return _unitCost; }
            set { _unitCost = value; }
        }

        public decimal Total
        {
            get { return _total; }
            set { _total = value; }
        }

        public bool IsConsignment
        {
            get { return _isConsignment; }
            set { _isConsignment = value; }
        }

        public decimal ConsignmentCommission
        {
            get { return _consignmentCommission; }
            set { _consignmentCommission = value; }
        }

        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

        public DateTime CreatedOn
        {
            get { return _createdOn; }
            set { _createdOn = value; }
        }

        public string CreatedBy
        {
            get { return _createdBy; }
            set { _createdBy = value; }
        }

        public DateTime UpdatedOn
        {
            get { return _updatedOn; }
            set { _updatedOn = value; }
        }

        public string UpdatedBy
        {
            get { return _updatedBy; }
            set { _updatedBy = value; }
        }
        #endregion

    }
    #endregion
}
